<?php
namespace Admin\Controller;
use Think\ControllerEx;
class CommonController extends ControllerEx {
    
    Public function _initialize()
    {	
    	$this->base_init(null);

    	$ses = session();
  		//如果 role 为前台调回前台登录
        if ($ses['admin']['role'] !== '1' ) {
            $this->redirect('Home/Login/index');
        }
    }
}